<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Bobble Fruit:  File sorgente globali.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Bobble Fruit
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generato da Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Cerca');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pagina&#160;Principale</span></a></li>
      <li><a href="annotated.html"><span>Classi</span></a></li>
      <li class="current"><a href="files.html"><span>File</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Cerca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Elenco&#160;dei&#160;file</span></a></li>
      <li><a href="globals.html"><span>Elementi&#160;dei&#160;file</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tutto</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classi</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>File</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funzioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variabili</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Tipi enumerati (enum)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Valori del tipo enumerato</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Definizioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pagine</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">globali.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="globali_8h.html">Vai alla documentazione di questo file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#ifndef _GLOBALI_H_</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _GLOBALI_H_</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;allegro5/allegro.h&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;allegro5/allegro_primitives.h&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;allegro5/allegro_image.h&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;allegro5/allegro_audio.h&gt;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;allegro5/allegro_acodec.h&gt;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="models_8h.html" title="questo è un header file che contiene la struttura degli oggetti usati nel progetto,">models.h</a>&quot;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="code" href="globali_8h.html#af62f0f35361858927524f5221f98b53b">   23</a></span>&#160; <span class="keyword">enum</span> <a class="code" href="globali_8h.html#af62f0f35361858927524f5221f98b53b" title="L&#39;enumerato STATO serve per indicare in quale parte del gioco ci troviamo.">STATO</a>{<a class="code" href="globali_8h.html#af62f0f35361858927524f5221f98b53ba56a9dbaf3e0ca086c51f66084ce6f8d8">FASE_TITOLO</a>, <a class="code" href="globali_8h.html#af62f0f35361858927524f5221f98b53ba2dcbf54ba35b01b7e8f7dead719007b1">FASE_GIOCO</a>, <a class="code" href="globali_8h.html#af62f0f35361858927524f5221f98b53badec336d4ab5871cd726bd28c8ca423bd">FASE_PERSO</a>, <a class="code" href="globali_8h.html#af62f0f35361858927524f5221f98b53bab028ae3406afa9f6bf557c41fd7b04aa">FASE_PAUSA</a>};</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="code" href="globali_8h.html#a917cb2ad6b731b390f8c57aa48656211ac08dae7edcb5c5bb959fee5971fbad95">   26</a></span>&#160; <span class="keyword">enum</span> <a class="code" href="globali_8h.html#a917cb2ad6b731b390f8c57aa48656211" title="Tasti che sono presi in considerazione nel gioco.">KEYS</a>{<a class="code" href="globali_8h.html#a917cb2ad6b731b390f8c57aa48656211adb45120aafd37a973140edee24708065">LEFT</a>, <a class="code" href="globali_8h.html#a917cb2ad6b731b390f8c57aa48656211aec8379af7490bb9eaaf579cf17876f38">RIGHT</a>, <a class="code" href="globali_8h.html#a917cb2ad6b731b390f8c57aa48656211ac08dae7edcb5c5bb959fee5971fbad95">SPACE</a>, <a class="code" href="globali_8h.html#a917cb2ad6b731b390f8c57aa48656211a82f05f38f6a17b117cdd2b83227912c6">P</a>};</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="code" href="globali_8h.html#a78b99b9c384b2fc6917cde25cb53f84ba58e9a5c01ed42a8ee555d3fb0d0d1f90">   29</a></span>&#160; <span class="keyword">enum</span> <a class="code" href="globali_8h.html#a78b99b9c384b2fc6917cde25cb53f84b" title="ID degli oggetti presenti nel gioco.">IDS</a> {<a class="code" href="globali_8h.html#a78b99b9c384b2fc6917cde25cb53f84ba1ea8fc2065f271f15a168433715e2b31">GIOCATORE</a>, <a class="code" href="globali_8h.html#a78b99b9c384b2fc6917cde25cb53f84ba381c307e97213d40a9b8c24cacfa1b6c">BOLLA</a>, <a class="code" href="globali_8h.html#a78b99b9c384b2fc6917cde25cb53f84ba58e9a5c01ed42a8ee555d3fb0d0d1f90">NEMICO</a>, <a class="code" href="globali_8h.html#a78b99b9c384b2fc6917cde25cb53f84bac6050c69a8c771e2ac8c8983fa37b094">FRUTTO</a>};</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="code" href="globali_8h.html#a14a200919e19f0b14ea096118b1dc1b5a5596231eabd6cf29050967d5ac83ad84">   32</a></span>&#160; <span class="keyword">enum</span> <a class="code" href="globali_8h.html#a14a200919e19f0b14ea096118b1dc1b5" title="Assi x e y tra i quali vengono disegnati gli oggetti.">ASSI</a>{<a class="code" href="globali_8h.html#a14a200919e19f0b14ea096118b1dc1b5a58833a3110c570fb05130d40c365d1e4">X</a>,<a class="code" href="globali_8h.html#a14a200919e19f0b14ea096118b1dc1b5a5596231eabd6cf29050967d5ac83ad84">Y</a>};</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="code" href="globali_8h.html#a9649ab8139c4c2ea5c93625b30d92a05">   34</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="globali_8h.html#a9649ab8139c4c2ea5c93625b30d92a05" title="Largezza della finestra di gioco.">WIDTH</a> = 500; </div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="code" href="globali_8h.html#af728b7647e0b8c49832983a31f9a2e9b">   35</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="globali_8h.html#af728b7647e0b8c49832983a31f9a2e9b" title="Altezza della finstra di gioco.">HEIGHT</a> = 700; </div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="code" href="globali_8h.html#a771817d554e60689c49523c8e9349352">   36</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="globali_8h.html#a771817d554e60689c49523c8e9349352" title="Costante del numero di bolle massime gestibili in un array bolle[].">NUM_BOLLE</a> = 10; </div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="code" href="globali_8h.html#a3f522072322d8112dc00ae9aea94ed0a">   37</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="globali_8h.html#a3f522072322d8112dc00ae9aea94ed0a" title="Costante del numero di nemici/robot massimi in array nemici[], presenti sullo schermo.">NUM_ROBOTS</a> = 5; </div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="code" href="globali_8h.html#a7b2d7007ceeb7bc5683a2ba3a589ff7c">   38</a></span>&#160;<span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="globali_8h.html#a7b2d7007ceeb7bc5683a2ba3a589ff7c" title="Costante del numero di frutta/dolci massimi in array frutta[], presenti sullo schermo.">NUM_FRUTTA</a> = 5; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="keyword">extern</span> ALLEGRO_BITMAP *<a class="code" href="booblefruit_8cc.html#abc2af28df56e2e0ce8b168bd4d191ec7" title="Array che contiene gli oggetti di tipo Bolle.">giocatore</a>[13];</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="keyword">extern</span> ALLEGRO_BITMAP *<a class="code" href="booblefruit_8cc.html#a53a1899713585c2d69c1cede0220720f" title="Array che contiene gli oggetti di tipo Robot.">nemici</a>[4];</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keyword">extern</span> ALLEGRO_BITMAP *<a class="code" href="booblefruit_8cc.html#ab23f35d0e343e30c72d88e5e7cfebe14" title="Array che contiene gli oggetti di tipo Frutta.">bonus</a>[6];</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="booblefruit_8cc.html#a5c124d5b3fcfa99f576c784f7d7ad541" title="Variabile per la memorizzazione dell&#39;ultima mossa fatta (movimento a destra o sinistra) Serve per dis...">prevDir</a> ;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="booblefruit_8cc.html#a63da0e90756fc2b6b9af444157e82641" title="Variabile per memorizzare se ci troviamo nella FASE_GIOCO o FASE_PAUSA.">prevStato</a>;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        </div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="booblefruit_8cc.html#af20fa3fdc21af9a61bd3c97b60f97292" title="Oggetto di tipo Drago E&#39; l&#39;oggetto che usa il giocatore per interagire con il gioco.">tasti</a>[4];</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="keyword">extern</span> ALLEGRO_SAMPLE *<a class="code" href="booblefruit_8cc.html#acd20d53d39c635e615b4e641868c60cf" title="Musica ripodotta durante lo sparo della bolle.">spara</a>;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="keyword">extern</span> ALLEGRO_SAMPLE *<a class="code" href="booblefruit_8cc.html#a86e9b2d51f514215e3748d8a4802b2a3" title="Musica riprodotta una volta sola durante la FASE_PERSO.">perso</a>;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="keyword">extern</span> ALLEGRO_SAMPLE *<a class="code" href="booblefruit_8cc.html#a49ea5e90bd2372ea1f2b7e0e62d19369" title="Musica riprodotta in loop durante la FASE_TITOLO.">titolo</a>;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="keyword">extern</span> ALLEGRO_SAMPLE *<a class="code" href="booblefruit_8cc.html#a2bf1b54583bd7383aad64beeec966e8b" title="Musica riprodotta in loop durante la FASE_GIOCO.">bobblefruit</a>;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="keyword">extern</span> ALLEGRO_SAMPLE_INSTANCE *<a class="code" href="booblefruit_8cc.html#acca6d7935496e6fb1b09221ef3f5572e" title="E&#39; una &quot;Playable Instance&quot;.">canzoneGioco</a>;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="keyword">extern</span> ALLEGRO_SAMPLE_INSTANCE *<a class="code" href="booblefruit_8cc.html#a456a1efd048535a34867aaeeb6e03aff" title="E&#39; una &quot;Playable Instance&quot;.">canzoneTitolo</a>;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="keyword">extern</span> <a class="code" href="structDrago.html">Drago</a> <a class="code" href="booblefruit_8cc.html#ad5ff877f97ce83db08dd3c6905a66330" title="Oggetto di tipo Drago E&#39; l&#39;oggetto che usa il giocatore per interagire con il gioco.">drago</a>;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="keyword">extern</span> <a class="code" href="structBolle.html">Bolle</a> <a class="code" href="booblefruit_8cc.html#ae0081eba65b03226aa248d54612ca7c7" title="Oggetto di tipo Bolle E&#39; un array di elemento Bolle che sono le armi del drago, per uccidere i robot ...">bolle</a>[<a class="code" href="globali_8h.html#a771817d554e60689c49523c8e9349352" title="Costante del numero di bolle massime gestibili in un array bolle[].">NUM_BOLLE</a>];</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="keyword">extern</span> <a class="code" href="structFrutta.html">Frutta</a> <a class="code" href="booblefruit_8cc.html#aa58faeb3510409ab3fda79f898914c49" title="Oggetto di tipo Frutta E&#39; un array di elemento Frutta che sono i bonus del drago .">frutta</a>[<a class="code" href="globali_8h.html#a7b2d7007ceeb7bc5683a2ba3a589ff7c" title="Costante del numero di frutta/dolci massimi in array frutta[], presenti sullo schermo.">NUM_FRUTTA</a>];</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="keyword">extern</span> <a class="code" href="structRobot.html">Robot</a> <a class="code" href="booblefruit_8cc.html#a3658e8c4b8b7295dc44657c5bdb4f59a" title="Oggetto di tipo Robot E&#39; un array di elemento Robot, sono i nemici del giocatore che deve uccidere...">robot</a>[<a class="code" href="globali_8h.html#a3f522072322d8112dc00ae9aea94ed0a" title="Costante del numero di nemici/robot massimi in array nemici[], presenti sullo schermo.">NUM_ROBOTS</a>];</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="preprocessor"></span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generato Lun 10 Giu 2013 11:45:13 per Bobble Fruit da &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>
